package com.welkom.everydate.dao;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.welkom.everydate.domain.Menu;
//@Repository
public class MenuDao extends BaseDao {
	public static final String GET_MENUS_BY_AUTHORITY_IDS="getMenusByAuthorityIds";
	
	public List<Menu> getMenusByAuthorityIds(List<Long> authorityIds ){
		Map<String,Object> parameters=new HashMap<String,Object>();
		parameters.put("authorityIds", authorityIds);
		return (List<Menu>)getSqlMapClientTemplate().queryForList(GET_MENUS_BY_AUTHORITY_IDS, parameters);
	}

}
